package com.umpay.dto.merBusi.req.query;

import org.hibernate.validator.constraints.NotEmpty;

import com.umpay.annotation.Pattern;
import com.umpay.dto.merBusi.req.CommonBusiReq;

import java.util.StringJoiner;

/**
 * @ClassName: BalanceQueryBusiReq  
 * @Description: 余额查询业务处理接收类
 * @author zhangtao  
 * @date Feb 7, 2018
 */
public class BalanceQueryBusiReq extends CommonBusiReq{
	
	/**
	 * 商户号
	 */
	@NotEmpty(message = "商户号不能为空")
	@Pattern(message="商户号格式不正确")
	private String merId;
	
	
	private String userId;

	/**
     * 商户用户号
	 */
	private String merCustId;
	
	/**
	 * 202:待清分  203:手续费账户 208:对公现金账户   209:对私现金账户
	 */
	private String accType;
	
	/**
	 * 业务产品号
	 */
	@NotEmpty(message = "业务产品号不能为空")
	@Pattern(message="业务产品号格式不正确")
	private String bProductId;
	
	/**
	 * 支付产品号
	 */
	private String pProductId;

	public String getMerId() {
		return merId;
	}

	public void setMerId(String merId) {
		this.merId = merId;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getAccType() {
		return accType;
	}

	public void setAccType(String accType) {
		this.accType = accType;
	}

	public String getbProductId() {
		return bProductId;
	}

	public void setbProductId(String bProductId) {
		this.bProductId = bProductId;
	}

	public String getpProductId() {
		return pProductId;
	}

	public void setpProductId(String pProductId) {
		this.pProductId = pProductId;
	}

    public String getMerCustId() {
        return merCustId;
    }

    public void setMerCustId(String merCustId) {
        this.merCustId = merCustId;
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", BalanceQueryBusiReq.class.getSimpleName() + "[", "]")
                .add("merId='" + merId + "'")
                .add("userId='" + userId + "'")
                .add("merCustId='" + merCustId + "'")
                .add("accType='" + accType + "'")
                .add("bProductId='" + bProductId + "'")
                .add("pProductId='" + pProductId + "'")
                .add("rpid='" + rpid + "'")
                .add("version='" + version + "'")
                .add("reqDate='" + reqDate + "'")
                .add("reqTime='" + reqTime + "'")
                .add("accessName='" + accessName + "'")
                .add("accessType='" + accessType + "'")
                .add("depBankMerId='" + depBankMerId + "'")
                .toString();
    }
}
